import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'getKey'
})
export class GetKeyPipe implements PipeTransform {

  transform(value: any, args?: any): any {
    var obj = JSON.parse(JSON.stringify(value));
    for(let i in obj){
      return i;
    }
  }

}
